﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewDeviceAdd.aspx.cs" Inherits="NewDeviceAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        function seltime(inputName) {
            window.open('seltime.aspx?InputName=' + inputName + '', '', 'width=250,height=220,left=360,top=250,scrollbars=yes');
        }
  
    </script>

</head>
<body>
    <form method="post" runat="server" id="frmAnnounce">
    <table width="842" border="0" cellpadding="0" cellspacing="0" align="center">
        <tr style="color: blue; font-size: 14px;">
            <td style="height: 14px; width: 502px;">
                <img src="images/ADD.gif" width="14px" height="14px" />设备管理--&gt;设备登记
            </td>
        </tr>
        <tr style="color: blue; font-size: 14px;">
            <td style="height: 14px; width: 570px;" colspan="2">
                <br />
                设备名称：<asp:TextBox ID="DeviceName" runat="server" Width="117px"></asp:TextBox>
                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="设备名称不能为空!"
                    Width="101px" ControlToValidate="DeviceName"></asp:RequiredFieldValidator>--%>
                &nbsp; 设备类别：<asp:DropDownList ID="DeviceType" runat="server" DataSourceID="DeviceTypeDataSource"
                    DataTextField="deviceTypeName" DataValueField="deviceTypeId" Width="122px">
                </asp:DropDownList>
                &nbsp; &nbsp; 所属部门：<asp:DropDownList ID="DeviceDpt" runat="server" DataSourceID="DeviceDptDataSource"
                    DataTextField="departmentName" DataValueField="departmentId">
                </asp:DropDownList>
                &nbsp;
                <br />
                <br />
                <%--设备品牌：<asp:TextBox ID="DeviceSign" runat="server" Width="117px"></asp:TextBox>
                &nbsp; --%>设备型号：<asp:TextBox ID="DeviceModel" runat="server" Width="115px"></asp:TextBox>&nbsp;
                设备序列号：<asp:TextBox ID="DeviceSerialNumber" runat="server" Width="110px"></asp:TextBox>&nbsp;<br />
                <br />
                使用人：&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="DeviceUser" runat="server" Width="115px"></asp:TextBox>&nbsp;&nbsp;&nbsp;
                IP地址：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtIPAddress" runat="server"
                    Width="115px"></asp:TextBox>&nbsp; &nbsp;&nbsp;窗口号：<asp:TextBox ID="txtWindowNumber"
                        runat="server" Width="115px"></asp:TextBox>
                <%--<input class="submit" onclick="seltime('DeviceOutDate')" type="button" value="选择"
                    name="Button">
                &nbsp; &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="DeviceOutDate"
                    ErrorMessage="出厂日期格式不正确!" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator><br />
                <br />
                购买日期：<asp:TextBox ID="DevicePurchaseTime" runat="server" Width="111px"></asp:TextBox>
                <input class="submit" onclick="seltime('DevicePurchaseTime')" type="button" value="选择"
                    name="Button">
                <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="DevicePurchaseTime"
                    ErrorMessage="购买日期格式不正确!" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DevicePurchaseTime"
                    ErrorMessage="购买日期不能为空!" Width="107px"></asp:RequiredFieldValidator>--%>
                <br />
                <br />
            </td>
        </tr>
        <tr style="color: blue; font-size: 14px;">
            <td>
                CPU：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtCPU" runat="server"
                    Width="115px"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;内存：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox
                    ID="txtMemory" runat="server" Width="115px"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;硬盘：&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtHardisk" runat="server"
                    Width="115px"></asp:TextBox>
                <br />
                <br />
            </td>
        </tr>
        <%--        <tr>
            <td style="width: 502px">
                设备图片路径：<asp:TextBox ID="DeviceImagePath" runat="server" ReadOnly="True" Width="228px"
                    Enabled="False"></asp:TextBox>
                &nbsp; &nbsp; &nbsp;
                <br />
                <br />
                上传设备图片：<asp:FileUpload ID="DeviceImageUpload" runat="server" Width="237px" />&nbsp;
                <asp:Button ID="Btn_Upload" runat="server" Text="上传" OnClick="Btn_Upload_Click" />
            </td>
            <td width="100px">
                <asp:Image ID="DeviceImage" runat="server" Height="90px" Width="99px" />
            </td>
        </tr>--%>
        <tr style="color: blue; font-size: 14px;">
            <%--<td colspan="2" style="height: 61px" valign="top"></td>--%><td>
                附加信息：<asp:TextBox ID="DeviceMemo" runat="server" Height="80px" Width="400px" TextMode="MultiLine"></asp:TextBox>
                <br />
                <br />
            </td>
            <%--<td style="height: 61px"></td>--%>
        </tr>
        <tr style="color: blue; font-size: 14px;">
            <td colspan="2" style="height: 18px" align="center">
                <asp:Button ID="Btn_Add" runat="server" Text="添加" OnClick="Btn_Add_Click" />&nbsp;
                <asp:Button ID="Btn_Cancle" runat="server" Text="取消" OnClick="Btn_Cancle_Click" />
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="DeviceTypeDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [deviceTypeId], [deviceTypeName] FROM [deviceType]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="DeviceDptDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [departmentId], [departmentName] FROM [departmentInfo]">
    </asp:SqlDataSource>
    </form>
</body>
</html>
